package br.net.woodstock.tickettoride.api.vaadin.client.impl;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

import br.net.woodstock.rockframework.domain.spring.ContextHelper;
import br.net.woodstock.tickettoride.api.client.common.AbstractTicketServiceWS;
import br.net.woodstock.tickettoride.api.manager.ApplicationService;
import br.net.woodstock.tickettoride.api.manager.SessionService;
import br.net.woodstock.tickettoride.api.manager.TicketService;

@WebService(name = "TicketServiceWS", serviceName = "TicketServiceWS", targetNamespace = "http://tickettoride.woodstock.net.br/ws/TicketServiceWS")
@SOAPBinding(style = Style.RPC)
public class TicketServiceWSImpl extends AbstractTicketServiceWS {

	private ApplicationService	applicationService	= ContextHelper.getInstance().getObject(ApplicationService.class);

	private TicketService		ticketService		= ContextHelper.getInstance().getObject(TicketService.class);

	private SessionService		sessionService		= ContextHelper.getInstance().getObject(SessionService.class);

	@Override
	@WebMethod(exclude = true)
	public ApplicationService getApplicationService() {
		return this.applicationService;
	}

	@Override
	@WebMethod(exclude = true)
	public TicketService getTicketService() {
		return this.ticketService;
	}

	@Override
	@WebMethod(exclude = true)
	public SessionService getSessionService() {
		return this.sessionService;
	}

}
